package com.nbcio.iot.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nbcio.common.mybatis.core.domain.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 设备点位
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("iot_data_point")
public class IotDataPoint extends BaseEntity {

    @TableId(value = "point_id", type = IdType.ASSIGN_ID)
    private Long pointId;

    @TableField("device_id")
    private Long deviceId;

    @TableField("point_name")
    private String pointName;

    @TableField("point_code")
    private String pointCode;

    @TableField("data_type")
    private String dataType;

    @TableField("unit")
    private String unit;

    @TableField("point_config")
    private String pointConfig;
} 